package com.mjw.tender.util;

import javax.servlet.http.HttpServletRequest;

public class TokenUtils {
    public static String getToken(HttpServletRequest request){
        String authorization = request.getHeader("Authorization");
        if(authorization!=null && authorization.length()>7){
            return   authorization.substring(6);
        }else {
            return "";
        }
    }
}
